import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import request from "@/utils/request.js";
import ck from "@/utils/auth.js";
import mix from "@/utils/mixins.js";

// 双向绑定
// https://www.zhihu.com/search?type=content&q=tinymce%20%E9%AB%98%E4%BA%AE%E6%96%87%E5%AD%97


 Vue.prototype.$bus=new Vue();

 // 复制文字功能  https://www.cnblogs.com/similar/p/10757540.html
 // npm install vue-clipboard2 --save
 import VueClipboard from 'vue-clipboard2';

 Vue.use(VueClipboard);

// 定义全局变量和组件
// https://blog.csdn.net/weixin_43355944/article/details/120966529
// https://blog.csdn.net/m0_48076809/article/details/108412247
// https://www.jianshu.com/p/bd00dde0e4f5

import Toast from "@/components/toast_00.vue";
Toast.install=function(Vue){
  Vue.component(Toast.name,Toast);
}
Vue.use(Toast);

import Account from "@/components/account.vue"
Account.install=function(Vue){
  Vue.component(Account.name,Account);
}
Vue.use(Account);



Vue.mixin(mix);
Vue.config.productionTip = false;

Vue.prototype.$request=request;
Vue.prototype.$cookie=ck;


// 生成二维码 https://www.cnblogs.com/ajuan/p/10100931.html
// npm install qrcodejs2 --save

// 方法一：　　

// 判断点击处的e.target.className值

// 方法二（比较好）：

// 　　给最外层的div加个点击事件 @click="userClick=false"

// 　　给点击的元素上面加上：@click.stop="userClick=!userClick"

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')



// 富文本使用 
//tinymce中文文档
//http://tinymce.ax-z.cn/
// https://packy-tang.gitee.io/vue-tinymce/#/
// https://github.com/lpreterite/vue-tinymce-example/tree/master/vue

